package pers.course.week3;

import java.util.Scanner;

public class CountNumber {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = new Scanner(System.in).nextLine();
        String newStr = str.replaceAll("\\s+", "");
        char[] chars = newStr.toCharArray();
        int[] counts = countLetters(chars);
        displayCount(counts);
    }
    public static int[] countLetters(char[] chars) {
        int[] counts = new int[26];
        for(int i = 0; i < chars.length; i++) {
            counts[chars[i] - 'a']++;
        }
        return counts;
    }
    public static void displayCount(int[] counts) {
        for (int i = 0; i < counts.length; i++) {
            if (counts[i] != 0) {
                System.out.println((char)(i + 'a') + "--" + counts[i]);
            }
        }
    }
}
